package com.ssyt.store.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssyt.store.sys.dao.StoreOrderDao;
import com.ssyt.store.sys.entity.StoreOrder;
import com.ssyt.store.sys.service.StoreOrderService;


@Service
public class StoreOrderServiceImpl implements StoreOrderService {
	
	@Autowired
	private StoreOrderDao storeOrderDao;

	@Override
	public List<StoreOrder> getStoreOrder(String userId) {
		return storeOrderDao.getStoreOrder(userId);
	}

	@Override
	public String addStoreOrder(StoreOrder storeOrder) {
		return storeOrderDao.addStoreOrder(storeOrder);
	}

	@Override
	public void deleteStoreOrder(String id) {
		storeOrderDao.deleteStoreOrder(id);
	}

	@Override
	public void receiveProduct(String id) {
		storeOrderDao.receiveProduct(id);
	}

	@Override
	public void sendProduct(String id) {
		storeOrderDao.sendProduct(id);
	}

	@Override
	public List<StoreOrder> listAllStoreOrder() {
		return storeOrderDao.listAllStoreOrder();
	}

}
